package schoolWork.work05.Example2a;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import static schoolWork.work05.Example2a.MyFrm_compute1.*;

public class sqrtListener implements ActionListener {
    @Override
    public void actionPerformed(ActionEvent e) {
        int number = Integer.parseInt(txt_number.getText());
        txt_sqrt.setText(Math.sqrt(number)+"");
    }
}
